X_LIBS += libxlibc.a libwm.a

X_INCDIRS	+= LVGL_Demo/

X_CFLAGS	+= -w

SRC			+= main.c
SRC			+= lvgl/src/core/
SRC			+= lvgl/src/draw/ 
SRC			+= lvgl/src/draw/sw/
SRC			+= lvgl/src/extra/
SRC			+= lvgl/src/extra/layouts/flex/
SRC			+= lvgl/src/extra/layouts/grid/
SRC			+= lvgl/src/extra/widgets/animimg/
SRC			+= lvgl/src/extra/widgets/calendar/
SRC			+= lvgl/src/extra/widgets/chart/
SRC			+= lvgl/src/extra/widgets/colorwheel/
SRC			+= lvgl/src/extra/widgets/imgbtn/
SRC			+= lvgl/src/extra/widgets/keyboard/
SRC			+= lvgl/src/extra/widgets/led/
SRC			+= lvgl/src/extra/widgets/list/
SRC			+= lvgl/src/extra/widgets/menu/
SRC			+= lvgl/src/extra/widgets/meter/
SRC			+= lvgl/src/extra/widgets/msgbox/
SRC			+= lvgl/src/extra/widgets/span/
SRC			+= lvgl/src/extra/widgets/spinbox/
SRC			+= lvgl/src/extra/widgets/spinner/
SRC			+= lvgl/src/extra/widgets/tabview/
SRC			+= lvgl/src/extra/widgets/tileview/
SRC			+= lvgl/src/extra/widgets/win/
SRC			+= lvgl/src/extra/themes/default/
SRC			+= lvgl/src/extra/themes/basic/
SRC			+= lvgl/src/font/ 
SRC			+= lvgl/src/hal/
SRC			+= lvgl/src/misc/
SRC			+= lvgl/src/widgets/
SRC			+= lvgl/demos/widgets/
SRC			+= lvgl/demos/widgets/assets/
SRC			+= lvgl/demos/benchmark/
SRC			+= lvgl/demos/benchmark/assets/
#SRC			+= lvgl/demos/music/
#SRC			+= lvgl/demos/music/assets/
SRC			+= lvgl/demos/stress/
SRC			+= lvgl/demos/keypad_encoder/
SRC			+= lv_drivers/wmdrv/

NAME		:= LVGL_Demo.xapp

define CUSTOM_TARGET_CMD
echo [APP] $@; \
$(LD) $(X_LDFLAGS) $(X_OBJS) -o $@ $(patsubst %, -L%, $(X_LIBDIRS)) \
	--start-group $(patsubst %, -l:%, $(X_LIBS)) --end-group
endef
